<template>
  <button>hello wasm</button>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import init, { Diagram, DefaultOptions } from "wasm-test";

export default defineComponent({
  name: "HelloWasm",
  setup: () => {
    init().then((res) => {
      let diagram = new Diagram();
      let options = new DefaultOptions();
      diagram.set_options(options);
    });
    return {};
  },
});
</script>
